﻿<%@ Control Language="C#" AutoEventWireup="False" CodeFile="PrintTempleteForOrderReport.ascx.cs"
    Inherits="UserControl_PrintTempleteForOrderReport" %>
<asp:Panel ID="panelself" runat="server">
    <asp:Literal ID="lblHeader" runat="server"></asp:Literal>
    <table style="font-size: 12px;" width="100%">
        <tr>
            <td style="text-align: center; font-size: 16px; font-weight: bold;" colspan="14"
                height="25px">
                贵州益佰<asp:Literal ID="lblORGNAME" runat="server"></asp:Literal>销售订单
            </td>
        </tr>
        <tr>
            <td align="left">
                经销商:
                <asp:Label ID="lblChainName" runat="server"></asp:Label>
            </td>
            <td>
            </td>
            <td>
            </td>
            <td align="left">
                业代及联系方式:
                <asp:Label ID="lblUserAndContact" runat="server"></asp:Label>
            </td>
            <td>
            </td>
            <td align="left">
                订单日期:
                <asp:Label ID="lblOrderDate" runat="server"></asp:Label>
            </td>
            <td>
            </td>
            <td>
            </td>
            <td>
            </td>
            <td>
            </td>
            <td>
            </td>
            <td>
            </td>
            <td align="left" style="width: 200px" colspan="2">
                供应单位:
                <asp:Label ID="lblDelieveryCompany" runat="server"></asp:Label>
            </td>
        </tr>
    </table>
    <table style="font-size: 12px;" width="100%">
        <tr>
            <td colspan="4">
                <asp:GridView  Width="100%" ID="gvChannelType" runat="server" AutoGenerateColumns="False"
                    EmptyDataText="没有可显示的数据." EmptyDataRowStyle-Font-Bold="true" EmptyDataRowStyle-HorizontalAlign="Center"
                    EnableEmptyContentRender="true" Font-Size="12px" BorderStyle="Solid" BorderColor="Black"
                    BorderWidth="1px">
                    <EmptyDataRowStyle HorizontalAlign="Center" Font-Bold="True"></EmptyDataRowStyle>
                    <Columns>
                        <asp:BoundField DataField="ORDER_NO" HeaderText="订单号">
                            <HeaderStyle BorderStyle="Solid" BorderColor="Black" BorderWidth="1px" />
                            <ItemStyle Wrap="False" BorderStyle="Solid" BorderColor="Black" BorderWidth="1px" />
                        </asp:BoundField>
                        <asp:BoundField DataField="TYPE" HeaderText="订单类型">
                            <HeaderStyle BorderStyle="Solid" BorderColor="Black" BorderWidth="1px" />
                            <ItemStyle Wrap="False" BorderStyle="Solid" BorderColor="Black" BorderWidth="1px" />
                        </asp:BoundField>
                        <asp:BoundField DataField="CUSTOMER_NAME" HeaderText="门店客户">
                            <HeaderStyle BorderStyle="Solid" BorderColor="Black" BorderWidth="1px" />
                            <ItemStyle Wrap="False" BorderStyle="Solid" BorderColor="Black" BorderWidth="1px" />
                        </asp:BoundField>
                        <asp:BoundField HeaderText="门店地址" DataField="ADDRESS_LINE">
                            <HeaderStyle BorderStyle="Solid" BorderColor="Black" BorderWidth="1px" />
                            <ItemStyle Wrap="true" BorderStyle="Solid" BorderColor="Black" BorderWidth="1px" />
                        </asp:BoundField>
                        <asp:BoundField DataField="TEL" HeaderText="联系电话">
                            <HeaderStyle BorderStyle="Solid" BorderColor="Black" BorderWidth="1px" />
                            <ItemStyle Wrap="true" BorderStyle="Solid" BorderColor="Black" BorderWidth="1px" />
                        </asp:BoundField>
                        <asp:BoundField HeaderText="产品名称" DataField="DESCRIPTION">
                            <HeaderStyle BorderStyle="Solid" BorderColor="Black" BorderWidth="1px" />
                            <ItemStyle Wrap="true" BorderStyle="Solid" BorderColor="Black" BorderWidth="1px" />
                        </asp:BoundField>
                        <asp:BoundField HeaderText="单位" DataField="UOMCODE">
                            <HeaderStyle Width="30px" BorderStyle="Solid" BorderColor="Black" BorderWidth="1px" />
                            <ItemStyle Width="30px" HorizontalAlign="Center" BorderStyle="Solid" BorderColor="Black"
                                BorderWidth="1px" />
                        </asp:BoundField>
                        <asp:BoundField DataField="Amount" HeaderText="订单数量">
                            <HeaderStyle Width="30px" BorderStyle="Solid" BorderColor="Black" BorderWidth="1px" />
                            <ItemStyle Width="30px" HorizontalAlign="Center" BorderStyle="Solid" BorderColor="Black"
                                BorderWidth="1px" />
                        </asp:BoundField>
                                                  <asp:BoundField DataField="slog_code" HeaderText="联系人">
                            <HeaderStyle Width="27px" BorderStyle="Solid" BorderColor="Black" BorderWidth="1px"
                                Height="19px" />
                            <ItemStyle Width="27px" HorizontalAlign="Center" BorderStyle="Solid" BorderColor="Black"
                                Height="19px" BorderWidth="1px" />
                        </asp:BoundField>
                        <asp:BoundField DataField="default_ship_to_code" HeaderText="门店ID">
                            <HeaderStyle Width="27px" BorderStyle="Solid" BorderColor="Black" BorderWidth="1px"
                                Height="19px" />
                            <ItemStyle Width="27px" HorizontalAlign="Center" BorderStyle="Solid" BorderColor="Black"
                                Height="19px" BorderWidth="1px" />
                        </asp:BoundField>
                        <asp:BoundField HeaderText="要求到货时间" DataField="REQ_DELIVERY_DATE" DataFormatString="{0:M-d}">
                            <HeaderStyle Width="40px" BorderStyle="Solid" BorderColor="Black" BorderWidth="1px" />
                            <ItemStyle Width="40px" HorizontalAlign="Center" BorderStyle="Solid" BorderColor="Black"
                                BorderWidth="1px" />
                        </asp:BoundField>
                        <asp:TemplateField HeaderText="单价">
                            <ItemTemplate>
                                <%# IsShowWritedData ? Eval("PiecePrice").ToString() : ""%>
                            </ItemTemplate>
                            <HeaderStyle Width="40px" BorderStyle="Solid" BorderColor="Black" BorderWidth="1px" />
                            <ItemStyle Width="40px" HorizontalAlign="Right" BorderStyle="Solid" BorderColor="Black"
                                BorderWidth="1px" />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="发货数量">
                            <ItemTemplate>
                                <%#  IsShowWritedData ? Eval("QTYShip").ToString() : ""%>
                            </ItemTemplate>
                            <HeaderStyle Width="30px" BorderStyle="Solid" BorderColor="Black" BorderWidth="1px" />
                            <ItemStyle Width="30px" HorizontalAlign="Right" BorderStyle="Solid" BorderColor="Black"
                                BorderWidth="1px" />
                        </asp:TemplateField>
                        <asp:BoundField HeaderText="金额">
                            <HeaderStyle Width="40px" BorderStyle="Solid" BorderColor="Black" BorderWidth="1px" />
                            <ItemStyle Width="40px" Wrap="False" BorderStyle="Solid" BorderColor="Black" BorderWidth="1px" />
                        </asp:BoundField>
                        <asp:TemplateField HeaderText="收货数量">
                            <ItemTemplate>
                                <%#  IsShowWritedData ? Eval("QTYReceive").ToString() : ""%>
                            </ItemTemplate>
                            <HeaderStyle Width="30px" BorderStyle="Solid" BorderColor="Black" BorderWidth="1px" />
                            <ItemStyle Width="30px" HorizontalAlign="Right" BorderStyle="Solid" BorderColor="Black"
                                BorderWidth="1px" />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="收货时间">
                            <ItemTemplate>
                                <%#  IsShowWritedData ? Eval("ARRIVAL_date", "{0:M.D}").ToString() : ""%>
                            </ItemTemplate>
                            <HeaderStyle Width="30px" BorderStyle="Solid" BorderColor="Black" BorderWidth="1px" />
                            <ItemStyle Width="30px" HorizontalAlign="Right" BorderStyle="Solid" BorderColor="Black"
                                BorderWidth="1px" />
                        </asp:TemplateField>
                        <asp:BoundField HeaderText="客户签收">
                            <HeaderStyle Width="55px" BorderStyle="Solid" BorderColor="Black" BorderWidth="1px" />
                            <ItemStyle Width="55px" HorizontalAlign="Right" BorderStyle="Solid" BorderColor="Black"
                                BorderWidth="1px" />
                        </asp:BoundField>
                    </Columns>
                    <HeaderStyle Height="21px" />
                </asp:GridView>
            </td>
        </tr>
    </table>
    <table style="font-size: 12px;" width="100%">
        <tr>
            <td style="width: 200px">
                交单时间:
            </td>
            <td>
            </td>
            <td>
            </td>
            <td style="width: 200px">
                送货员:
            </td>
            <td>
                <td style="width: 200px">
                    经销商财务签字:
                </td>
            </td>
            <td>
            </td>
            <td>
            </td>
            <td>
            </td>
            <td style="width: 200px">
                经销商盖章:
            </td>
        </tr>
        <tr>
            <td colspan="13">
                备注：门店客户收货后必须签字，经销商财务签字是要确认门店收货数量的真实性，要求经销商在报送办事处前必须盖章确认真实性。
            </td>
        </tr>
        <tr>
            <td align="left">
                打印时间:<asp:Literal ID="lblDateTime" runat="server"></asp:Literal>
            </td>
            <td>
            </td>
            <td>
            </td>
            <td>
            </td>
            <td>
            </td>
            <td>
            </td>
            <td>
            </td>
            <td>
            </td>
            <td>
            </td>
            <td>
            </td>
            <td>
            </td>
            <td>
            </td>
            <td>
            </td>
            <td>
            </td>
            <td align="right">
                页码:<asp:Literal ID="lblPager" runat="server"></asp:Literal>
                <br />
            </td>
        </tr>
    </table>
    <asp:Literal ID="lblBottom" runat="server"></asp:Literal>
    <div id='printbtn' style='text-align: center;'>
        <asp:Literal ID="lblPrintBtn" runat="server"></asp:Literal>
    </div>
</asp:Panel>
<br />
